package cn.yunhe.entity;

import java.io.Serializable;

public class News implements Serializable {
    private int newsid;
    private String title;
    private String context;
    private String pic;
    private String writeTime;
    private Admin admin;
    private Block block;

    public News() {
    }

    public News(String title, String context, String writeTime, Admin admin, Block block) {
        this.title = title;
        this.context = context;
        this.writeTime = writeTime;
        this.admin = admin;
        this.block = block;
    }

    public int getNewsid() {
        return newsid;
    }

    public void setNewsid(int newsid) {
        this.newsid = newsid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getWriteTime() {
        return writeTime;
    }

    public void setWriteTime(String writeTime) {
        this.writeTime = writeTime;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    public Block getBlock() {
        return block;
    }

    public void setBlock(Block block) {
        this.block = block;
    }
}
